package com.fy.springcloud.feign.fallback;

import com.fy.springcloud.feign.GoodsServiceFeign;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

@Component
public class GoodsServiceFeignFallback implements GoodsServiceFeign {
    @Override
    public List<String> getGoodsList() {
        return Collections.singletonList("fallback");
    }
}
